<?php 
include('../common/common.php');
include('../common/checksession.php');
checksession("../index.php");
include('../../inc/conn.php');

$del_id=$_POST["beach_del"];
$gurl=$_SERVER['HTTP_REFERER'];
foreach($del_id as $v){
	isnum($v,"操作失败!",$gurl);
}
$del_id=implode(",",$del_id);

$db=db_connect();
$sql=update_sql("`".PRETABLE."arcmain`","`isdel`='1'","`id` IN(".$del_id.")");

if(!$db->query($sql)){
	ShowMsg_h("操作失败!",$gurl);
	exit;
}
ShowMsg_h("成功删除!",$gurl);
$db->close();

?>